package com.csr.csrcheck.pojo;

import java.util.Date;
import java.util.Objects;

public class User {
    private int user_id;

    private String user_name;

    private String password;

    private int user_roleid;

    private int user_sex;

    private int user_age;

    private String user_address;

    private String create_people;

    private Date create_time;

    private String user_photo;

    private String role_name;

    public String getUser_photo() {
        return this.user_photo;
    }

    public void setUser_photo(String user_photo) {
        this.user_photo = user_photo;
    }

    public String getRole_name() {
        return this.role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    public int getUser_id() {
        return this.user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return this.user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getPassword() {
        return this.password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getUser_roleid() {
        return this.user_roleid;
    }

    public void setUser_roleid(int user_roleid) {
        this.user_roleid = user_roleid;
    }

    public int getUser_sex() {
        return this.user_sex;
    }

    public void setUser_sex(int user_sex) {
        this.user_sex = user_sex;
    }

    public int getUser_age() {
        return this.user_age;
    }

    public void setUser_age(int user_age) {
        this.user_age = user_age;
    }

    public String getUser_address() {
        return this.user_address;
    }

    public void setUser_address(String user_address) {
        this.user_address = user_address;
    }

    public String getCreate_people() {
        return this.create_people;
    }

    public void setCreate_people(String create_people) {
        this.create_people = create_people;
    }

    public Date getCreate_time() {
        return this.create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String toString() {
        return "User{user_id=" + this.user_id + ", user_name='" + this.user_name + '\'' + ", password='" + this.password + '\'' + ", user_roleid=" + this.user_roleid + ", user_sex=" + this.user_sex + ", user_age=" + this.user_age + ", user_address='" + this.user_address + '\'' + ", create_people='" + this.create_people + '\'' + ", create_time=" + this.create_time + '}';
    }

    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;
        com.csr.csrcheck.pojo.User user = (com.csr.csrcheck.pojo.User)o;
        return (this.user_id == user.user_id && this.user_roleid == user.user_roleid && this.user_sex == user.user_sex && this.user_age == user.user_age &&

                Objects.equals(this.user_name, user.user_name) &&
                Objects.equals(this.password, user.password) &&
                Objects.equals(this.user_address, user.user_address) &&
                Objects.equals(this.create_people, user.create_people) &&
                Objects.equals(this.create_time, user.create_time));
    }

    public int hashCode() {
        return Objects.hash(new Object[] { Integer.valueOf(this.user_id), this.user_name, this.password, Integer.valueOf(this.user_roleid), Integer.valueOf(this.user_sex), Integer.valueOf(this.user_age), this.user_address, this.create_people, this.create_time });
    }
}
